ActionController::Routing::Routes.draw do |map|
    
    map.root :controller => "default", :action => "index"
    map.home '', :controller => 'default', :action => 'index'
    
    map.resources :citations
    map.resources :gists, :collection => {:filter => :get}
    map.resources :tags

    map.open_id_complete 'session', :controller => 'session', :action => 'create', :requirements => { :method => :get }
    map.resources :users, :member => { :admin => :post }, :has_many => :gists
    map.resource :session

    map.signup   'signup',        :controller => 'users',   :action => 'new'
    map.settings 'settings',      :controller => 'users',   :action => 'edit'
    map.activate 'activate/:key', :controller => 'users',   :action => 'activate'
    map.login    'signin',         :controller => 'session', :action => 'new'
    map.logout   'signout',        :controller => 'session', :action => 'destroy'

    # The priority is based upon order of creation: first created -> highest priority.

    # Sample of regular route:
    # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
    # Keep in mind you can assign values other than :controller and :action

    # Sample of named route:
    # map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
    # This route can be invoked with purchase_url(:id => product.id)

    # Sample resource route (maps HTTP verbs to controller actions automatically):
    # map.resources :products

    # Sample resource route with options:
    # map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }

    # Sample resource route with sub-resources:
    # map.resources :products, :has_many => [ :comments, :sales ], :has_ony => :seller

    # Install the default routes as the lowest priority.
    map.connect ':controller/:action/:id'
    map.connect ':controller/:action/:id.:format'
end
